package ObjectFrame;

public class TestFrame {
    public static void main(String[] args) throws Exception {
        StudentInfo s1 = new StudentInfo("小明",18,'男',178,
                "跑步");
        TeacherInFo t1 = new TeacherInFo("张老师",99);
        //把任意对象的字段名存入到文件中去
        ObjectFrame.saveObj(s1);
        ObjectFrame.saveObj(t1);
    }
}
